<template>
    <div>
        <Row type="flex" justify="start">
            <Col span="3">
                <Button type="default" long @click="backAction">返回</Button>
            </Col>
        </Row>
        <excel-action :type="excelType"></excel-action>
    </div>
</template>

<script>

import ExcelAction from '@/components/excel-action-new'
export default {
  components: { ExcelAction },
  data () {
    return {
      excelType: ''
    }
  },
  beforeMount () {
    this.excelType = this.$route.query && this.$route.query.type
  },
  methods: {
    backAction () {
      if (this.$route.query && this.$route.query.type === 'whiteForeign') {
        this.$router.push({ name: 'customerServiceWhiteForeign' })
      } else {
        this.$router.push({ name: 'index' })
      }
    }
  },
  mounted () {}
}
</script>

<style scoped>
</style>
